package com.gitee.beiding.cloud.base.standard;

import lombok.Getter;

/**
 * 统一的分页
 */
@Getter
public class PageResult {

    //总条数
    private long total;

    //包含的内容
    private Object data;

    //分页大小
    private int pageSize;

    //当前页数
    private long currentPage;

    public PageResult(int pageSize, long currentPage, Object data, long total) {
        this.total = total;
        this.data = data;
        this.pageSize = pageSize;
        this.currentPage = currentPage;
    }
}
